package com.lechuang.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lechuang.common.model.BaseEntity;
import java.io.Serializable;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 商品sku
 * @TableName goods_sku
 */
@TableName(value ="goods_sku")
@Data
@Accessors(chain = true)
public class GoodsSku extends BaseEntity implements Serializable {
    /**
     * 商户id
     */
    private Long tenantId;

    /**
     * spu主键id
     */
    private Long spuId;

    /**
     * 编码
     */
    private String code;

    /**
     * 规格
     */
    private String spec;

    /**
     * 库存
     */
    private Long inventory;

    /**
     * 销量
     */
    private Long saleNum;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}